Skip to content

[FIX]stock_ux: remove mobile field from picking report#908

Closed
mav-adhoc wants to merge 1 commit intoingadhoc:19.0from
adhoc-dev:19.0-h-116249-mav
Closed

[FIX]stock_ux: remove mobile field from picking report#908
mav-adhoc wants to merge 1 commit intoingadhoc:19.0from
adhoc-dev:19.0-h-116249-mav

Conversation

@mav-adhoc
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 23, 2026 19:02
@roboadhoc
Copy link
Copy Markdown
Collaborator

Pull request status dashboard

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Este PR ajusta el reporte de albarán (picking) del módulo stock_ux para dejar de mostrar el teléfono móvil del destinatario y usar únicamente el teléfono fijo, simplificando la información de contacto impresa.

Changes:

  • Se elimina la lógica de fallback a partner_id.mobile en el bloque “Tel:” del destinatario.
  • Se elimina la lógica de fallback a partner_id.parent_id.mobile en el mismo bloque.

Comment thread stock_ux/report/picking_templates.xml Outdated
<t class="oe_inline" t-out="picking.partner_id.country_id.name"/>
<div style="font-weight: normal;">Tel:
<t t-if="picking.partner_id and (picking.partner_id.phone or picking.partner_id.mobile)">
<t t-if="picking.partner_id and (picking.partner_id.phone">
Copy link

Copilot AI Apr 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

La expresión del primer t-if quedó con paréntesis sin cerrar: t-if="picking.partner_id and (picking.partner_id.phone". Así como está, el XML/QWeb no va a parsear/compilar. Ajustá la condición a algo válido (por ejemplo, quitar el paréntesis y chequear solo picking.partner_id and picking.partner_id.phone).

Suggested change
<t t-if="picking.partner_id and (picking.partner_id.phone">
<t t-if="picking.partner_id and picking.partner_id.phone">

Copilot uses AI. Check for mistakes.
Comment thread stock_ux/report/picking_templates.xml Outdated
Comment on lines 134 to 142
<t t-if="picking.partner_id and (picking.partner_id.phone">
<t t-if="picking.partner_id.phone">
<t t-out="picking.partner_id.phone"/>
</t>
<t t-else="">
<t t-out="picking.partner_id.mobile"/>
</t>
</t>
<t t-elif="picking.partner_id.parent_id and (picking.partner_id.parent_id.phone or picking.partner_id.parent_id.mobile)">
<t t-elif="picking.partner_id.parent_id and picking.partner_id.parent_id.phone">
<t t-if="picking.partner_id.parent_id.phone">
<t t-out="picking.partner_id.parent_id.phone"/>
</t>
Copy link

Copilot AI Apr 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tras eliminar mobile, los t-if internos son redundantes (el t-if/t-elif externo ya garantiza que existe phone). Esto se puede simplificar a una sola condición por bloque y un único t-out, para reducir anidación y facilitar mantenimiento.

Copilot uses AI. Check for mistakes.
@jcadhoc
Copy link
Copy Markdown
Contributor

jcadhoc commented Apr 24, 2026

@roboadhoc r+ bump

@roboadhoc roboadhoc closed this in 9007ba2 Apr 24, 2026
roboadhoc added a commit that referenced this pull request Apr 24, 2026
@roboadhoc roboadhoc deleted the 19.0-h-116249-mav branch April 24, 2026 16:45
@roboadhoc roboadhoc added the 18.1 label Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants